﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using CapaNegocio;
using CapaDeEntidades;

namespace Biblioteca
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
         
        }
        Controladora controladora=new Controladora();
        protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
        {
            string username = Login1.UserName;
            string pass = Login1.Password;                      
            Socio socio=controladora.ValidarUsuario(username,pass);
            if(socio!=null)
               Response.Redirect("Principal.aspx");
            
        }

        protected void LinkButton_Click(object sender, EventArgs e)
        {
            Response.Redirect("RegistrarSocio.aspx");

        }
    }
}
